package com.gs.wzweather.controller;

import com.gs.wzweather.entity.ForcastRevise;
import com.gs.wzweather.service.ForcastReviseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("forcastRevise")
public class ForcastReviseController {
    @Autowired
    ForcastReviseService service;

    @RequestMapping("queryThree")
    @ResponseBody
    public ForcastRevise queryReviseThree() {
        return service.queryReviseThree();
    }

    @RequestMapping("queryWeek")
    @ResponseBody
    public ForcastRevise queryReviseWeek() {
        return service.queryReviseweek();
    }

}
